package prototype;

import prototype.factory.ILifeFactory;
import prototype.factory.impl.LifeFactoryImpl;
import prototype.pojo.DayLife;

public class PrototypeClient {

	public static void main(String[] args) {
		ILifeFactory lifeFactory = new LifeFactoryImpl();
		lifeFactory.getNewInstance().print();
		
		System.err.println("------------------------");
		DayLife dayLife = lifeFactory.getNewInstance();
		dayLife.setGetUp("早上赖床了！7：15才起床！");
		dayLife.print();
		
		System.err.println("------------------------");
		DayLife dayLife2 = lifeFactory.getNewInstance();
		dayLife2.setGetUp("早上赖床了！7：30才起床！");
		dayLife2.print();
		

	}

}
